package com.app.budgetbook;

import android.app.Activity;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;

public class BudgetBook extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        MediaPlayer mp = MediaPlayer.create(this, R.raw.coin_drop);
        mp.start();
        Thread logoTimer = new Thread()
        {
        	public void run()
        	{
        		try{
        			int logoTimer=0;
        			while(logoTimer <1000)
        			{
        				sleep(100);
        				logoTimer=logoTimer+100;
        				
        			}
        			startActivity(new Intent("com.app.budgetbook.CLEARSCREEN"));
        		}
        		catch(InterruptedException e)
        		{
        			e.printStackTrace();
        			
        		}
        		finally
        		{
        			finish();
        		}
        	}
        	
        };
        logoTimer.start();
    }
}